package services.common;

import models.common.entity.t_audit_info_score;
import services.base.BaseService;

import common.utils.Factory;
import common.utils.ResultInfo;

import daos.common.AuditInfoScoreDao;

/**
 * 	评审资料审核信用积分  service
 * @author zhiliang.lan
 *
 */
public class AuditInfoScoreService extends BaseService<t_audit_info_score> {
	
	protected AuditInfoScoreDao auditInfoScoreDao = Factory.getDao(AuditInfoScoreDao.class);

	protected AuditInfoScoreService() {
		super.basedao = this.auditInfoScoreDao;
	}
	
	/**
	 * 保存新增
	 * @param auditInfoType
	 * @return
	 * @author zhiliang.lan
	 * @createDate 2017年5月2日
	 */
	public ResultInfo addAuditInfoScore(t_audit_info_score auditInfoScore) {
		ResultInfo result = new ResultInfo();
		
		boolean flag = auditInfoScoreDao.save(auditInfoScore);
		if (!flag) {
			
			result.code = ResultInfo.ERROR_SQL;
			result.msg = "系统错误";	
			
			return result;
		} 
		
		result.code = 1;
		result.msg="评审资料信用积分添加成功!";
		result.obj = auditInfoScore;
		
		return result;
	}
	
	
	
}
